<HTML>
<head>
<title>AngelScript: Reference: Context states</title>
<LINK rel="stylesheet" type="text/css" href="style.css">
</head>

<body>

<p>
<a href="../index.html">index</a>
</p>

<h1>Reference: Context states</h1>

<pre class=border>
<a href="#finished">asEXECUTION_FINISHED</a>
<a href="#suspended">asEXECUTION_SUSPENDED</a>
<a href="#aborted">asEXECUTION_ABORTED</a>
<a href="#exception">asEXECUTION_EXCEPTION</a>
<a href="#prepared">asEXECUTION_PREPARED</a>
<a href="#uninitialized">asEXECUTION_UNINITIALIZED</a>
<a href="#active">asEXECUTION_ACTIVE</a>
<a href="#error">asEXECUTION_ERROR</a>
</pre>

<a name=finished></a>
<h2>asEXECUTION_FINISHED</h2>

<p>All the code has been successfully executed. The return value can be retrieved and the context released or prepared for another execution.</p>


<a name=suspended></a>
<h2>asEXECUTION_SUSPENDED</h2>

<p>The execution has been suspended. The execution can be resumed by calling Execute() or ExecuteStep(). The execution can be aborted by calling Abort().</p>



<a name=aborted></a>
<h2>asEXECUTION_ABORTED</h2>

<p>The execution has been aborted. Nothing has been returned, and no exception occured. The context can be released or prepared for another execution.</p>



<a name=exception></a>
<h2>asEXECUTION_EXCEPTION</h2>

<p>An exception occured in the script code. Nothing has been returned. The context can be released or prepared for another execution.</p>



<a name=prepared></a>
<h2>asEXECUTION_PREPARED</h2>

<p>The execution has been prepared for execution but nothing has been executed yet.</p>



<a name=uninitialized></a>
<h2>asEXECUTION_UNINITIALIZED</h2>

<p>The context hasn't been prepared yet. Call Prepare() or release the context.</p>



<a name=active></a>
<h2>asEXECUTION_ACTIVE</h2>

<p>The context is currently executing the byte code. The execution can be suspended or aborted by calling Suspend() or Abort() respectively.</p>



<a name=error></a>
<h2>asEXECUTION_ERROR</h2>

<p>There was an error while setting the script function arguments.</p>




<p><a href="#">top</a></p>

</body></HTML>